package cn.tqfeiyang.smartadmin.system.controller;

import cn.tqfeiyang.smartadmin.commons.Constants;
import cn.tqfeiyang.smartadmin.commons.response.ApiResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 应答控制器
 *
 * @author tqfeiyang
 * @since 2024/8/20 9:52
 */
@RestController
@Tag(name = "公共/应答")
public class EchoController {

    @GetMapping(value = Constants.ECHO_HELLO_URL)
    @Operation(summary = "显示欢迎信息")
    public ApiResult<String> index() {
        return ApiResult.success("你好，中国");
    }

}

